<?php
/**
 * 得意基础库（用户公用方法函数库）
 *
 * @author liang<lang@vip.deyi.com>
 * @since   2015/5/27 13:52
 * @copyright  deyi.com
 */

namespace Deyi\Functions;

use Apps\Common\Constant\TaskConstant;
use Apps\Common\Service\TaskService;
use Phalcon\Di;

/**
 * Class UserFunction
 * @package Deyi\Functions
 */
class UserFunction
{

    const  AVATAR_IMG_URL = 'http://img.deyilife.cn/avatar/';

    private static $_AVATAR_IMG_URL = self::AVATAR_IMG_URL;

    /**
     * 设定头像地址
     *
     * @author liang<lang@vip.deyi.com>
     * @param $runMode
     * @param string $url
     */
    public static function setAvatarImgUrl($runMode, $url = 'http://deyi-attach-test.oss-cn-hangzhou.aliyuncs.com/avatar/')
    {
        if ($runMode == 'dev') {
            static::$_AVATAR_IMG_URL = $url;
        }
    }

}